<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>员工管理</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/icon.css">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	var url;
	function formatTicketOrder(val, row) {
		if(val!=null){
		return val.id;
		}else{
			return '';
		}
	}
	function formatTicketType(val, row) {
		if(val!=null){
		return val.name;
		}else{
			return '';
		}
	}
	function formatEmployee(val, row) {
		if(val!=null){
		return val.name;
		}else{
			return '';
		}
	}
</script>
</head>
<body style="margin: 1px">
	<table id="dg" title="票务统计" class="easyui-datagrid" fitColumns="true"
		pagination="true" rownumbers="true"
		url="${pageContext.request.contextPath}/ticket/list.do" fit="true"
		toolbar="#tb">
		<thead>
			<tr>
				<th field="id" width="30" align="center" >票单编号</th>
				<th field="totalPrice" width="30" align="center" >票总价格</th>
				<th field="createTime" width="30" align="center" >出票时间</th>
				<th field="ticketOrder" width="30" align="center" formatter="formatTicketOrder">订单号</th>
				<th field="ticketType" width="30" align="center" formatter="formatTicketType">票类型</th>
				<th field="employee" width="30" align="center" formatter="formatEmployee">售票人</th>
			</tr>
		</thead>
	</table>
	<div id="tb">
		<!-- <div>
			<a href="javascript:openAddEmployeeDialog()"
				class="easyui-linkbutton" iconCls="icon-add" plain="true">添加</a> <a
				href="javascript:openUpdateEmployeeDialog()"
				class="easyui-linkbutton" iconCls="icon-edit" plain="true">修改</a><a
				href="javascript:deleteEmployee()" class="easyui-linkbutton"
				iconCls="icon-remove" plain="true">删除</a>
		</div>
		<div>
			&nbsp;姓名&nbsp;<input type="text" id="s_name" size="20"
				onkeydown="if(event.keyCode==13) searchBlog()" /> &nbsp;岗位&nbsp;<input
				type="text" id="s_station" size="20"
				onkeydown="if(event.keyCode==13) searchBlog()" /> <a
				href="javascript:searchEmployee()" class="easyui-linkbutton"
				iconCls="icon-search" plain="true">搜索</a>
		</div> -->
	</div>

</body>
</html>